<?php
ini_set("session.cookie_domain",'localhost.com');
    session_start();
    echo $_SESSION['user_name'];
?>